<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function init(){
				parent.waiting_stop();
			}
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
		</script>
	</head>
	<body onload="init()">
		<ec:table items="list" var="v" title="" width="100%"
			retrieveRowsCallback="process" filterRowsCallback="process"
			maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
			rowsDisplayed="15" sortable="false" filterable="false"
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,ID_,id"
			toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
			action="${ctx}/verify/list">
			<ec:row style="text-align:center;">
				<ec:column property="ID_"
					title="<input type='checkbox' name='checkAll' onclick='check_all(this.form,this.form.id)'>"
					style="text-align:center;width:34px;" sortable="false">
					<input type='checkbox' value='${v.id}' name='id' id="id"
						onclick="check_item(this.form,this.form.id)" ></input>
				</ec:column>
				<ec:column property="serial" title="序号" style="text-align:center;width:30px;">${GLOBALROWCOUNT}</ec:column>
				<ec:column property="verify_no" title="编号" ><a href="javascript:void(0)" onclick="parent.view('${v.id }')">${v.verify_no}</a></ec:column>
				<ec:column property="verify_name" title="名称">${v.verify_name}</ec:column>
				<ec:column property="device_type_name" title="设备类型">
					${v.device_type_name }<c:if test="${not empty v.device_id_name }">-${v.device_id_name }</c:if>
				</ec:column>
				<ec:column property="valid_date_" title="有效期至">${v.valid_date_ }</ec:column>
				<ec:column property="diff_day" title="使用提醒">
					<c:if test="${v.diff_day gt 30}">
							<span style="color: green;">使用中</span>
						</c:if>
						<c:if test="${v.diff_day le 30 and v.diff_day ge 0}"> <span style="color:red;">剩余${v.diff_day }天 </span></c:if>
						<c:if test="${v.diff_day lt 0}">
							<span style="color: gray;">已过期</span>
						</c:if>
				</ec:column>
				<ec:column property="create_date_" title="录入日期">${v.create_date_ }</ec:column>
				<ec:column property="status" title="状态" style="text-align: center;">
					<c:if test="${v.status == 2}">
						<span style="color: red;">停用</span>
					</c:if>
					<c:if test="${v.status == 1}">
						<span style="color: green;">启用</span>
					</c:if>
				</ec:column>
				<ec:column property="remark" title="备注">${v.remark}</ec:column>
			</ec:row>
		</ec:table>
	</body>
</html>